package org.desktop.web.client.gui.models;

import com.google.gwt.user.client.rpc.IsSerializable;


public abstract class AbstractGridWindowForm<B extends IsSerializable> extends AbstractWindowForm {

	private APagingGrid<B, ?, ?> aGrid;

	
	public AbstractGridWindowForm(OperationType operationType,
			APagingGrid<B, ?, ?> aGrid) {
		super(operationType);
		this.aGrid = aGrid;

	}
	public APagingGrid<B, ?, ?> getGrid() {
		return aGrid;
	}

	public B getSelectedData() {
		return getGrid().getGrid().getSelectionModel().getSelectedItem();
	}

}
